package com.yuwei.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.yuwei.database.entity.VideoParamEntity
import kotlinx.coroutines.flow.Flow


@Dao
interface VideoDao {
    @Query("SELECT * FROM video_info")
    suspend fun getAll(): List<VideoParamEntity>
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insert(videoParamEntity: VideoParamEntity)

}